import request from '@/utils/request'

export default {
  dailyInputQuery(tableQuery, tablePage){
    let params={
      page:tablePage.current?tablePage.current:1,
      num:tablePage.size?tablePage.size:20,
      date:tableQuery.date,
      module_name:tableQuery.module_name,
      orgnization_id:tableQuery.orgnization_id
    }
    return request({
      url:'/daily-data/page',
      method:'get',
      params
    })
  },
  dailyInputStore(data){
    return request({
      url:'/daily-data/store',
      method:'post',
      data
    })
  },
  dailyInputUpdate(data){
    return request({
      url:'/daily-data/update',
      method:'post',
      data
    })
  },
  dailyDetail(params){
    return request({
      url:'/daily-data/detail',
      method:'get',
      params
    })
  },
  dailyDestroy(data){
    return request({
      url:'/daily-data/destroy',
      method:'delete',
      data
    })
  }

}
